from flask import Blueprint, request, jsonify

blueprint = Blueprint("publish", __name__, url_prefix="/api/publish")

from sqlalchemy import and_

import json


@blueprint.route("/get_demo", methods=["GET"])
def get_demo():
    params_dict = request.args
    t_deep = params_dict.get("deep", "1")
    res_dict = {
        "code": 200,
        "msg": "success"

    }
    return jsonify(res_dict)


@blueprint.route("/post_demo", methods=["POST"])
def get_demo():
    # params_dict = request.args
    params_dict = request.json
    t_deep = params_dict.get("deep", "1")
    res_dict = {
        "code": 200,
        "msg": "success"
    }
    return jsonify(res_dict)
